/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.triumphsys.icici.cmeeting.portlet.service.persistence;

import com.liferay.portal.NoSuchModelException;
import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.kernel.cache.CacheRegistryUtil;
import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
import com.liferay.portal.kernel.dao.orm.FinderPath;
import com.liferay.portal.kernel.dao.orm.Query;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.dao.orm.Session;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.InstanceFactory;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.model.ModelListener;
import com.liferay.portal.service.persistence.BatchSessionUtil;
import com.liferay.portal.service.persistence.ResourcePersistence;
import com.liferay.portal.service.persistence.UserPersistence;
import com.liferay.portal.service.persistence.impl.BasePersistenceImpl;

import com.triumphsys.icici.cmeeting.portlet.NoSuchCMReportingProposalException;
import com.triumphsys.icici.cmeeting.portlet.model.CMReportingProposal;
import com.triumphsys.icici.cmeeting.portlet.model.impl.CMReportingProposalImpl;
import com.triumphsys.icici.cmeeting.portlet.model.impl.CMReportingProposalModelImpl;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * The persistence implementation for the c m reporting proposal service.
 *
 * <p>
 * Never modify or reference this class directly. Always use {@link CMReportingProposalUtil} to access the c m reporting proposal persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
 * </p>
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Triumphsys
 * @see CMReportingProposalPersistence
 * @see CMReportingProposalUtil
 * @generated
 */
public class CMReportingProposalPersistenceImpl extends BasePersistenceImpl<CMReportingProposal>
	implements CMReportingProposalPersistence {
	public static final String FINDER_CLASS_NAME_ENTITY = CMReportingProposalImpl.class.getName();
	public static final String FINDER_CLASS_NAME_LIST = FINDER_CLASS_NAME_ENTITY +
		".List";
	public static final FinderPath FINDER_PATH_FIND_ALL = new FinderPath(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
			CMReportingProposalModelImpl.FINDER_CACHE_ENABLED,
			FINDER_CLASS_NAME_LIST, "findAll", new String[0]);
	public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
			CMReportingProposalModelImpl.FINDER_CACHE_ENABLED,
			FINDER_CLASS_NAME_LIST, "countAll", new String[0]);

	/**
	 * Caches the c m reporting proposal in the entity cache if it is enabled.
	 *
	 * @param cmReportingProposal the c m reporting proposal to cache
	 */
	public void cacheResult(CMReportingProposal cmReportingProposal) {
		EntityCacheUtil.putResult(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
			CMReportingProposalImpl.class, cmReportingProposal.getPrimaryKey(),
			cmReportingProposal);
	}

	/**
	 * Caches the c m reporting proposals in the entity cache if it is enabled.
	 *
	 * @param cmReportingProposals the c m reporting proposals to cache
	 */
	public void cacheResult(List<CMReportingProposal> cmReportingProposals) {
		for (CMReportingProposal cmReportingProposal : cmReportingProposals) {
			if (EntityCacheUtil.getResult(
						CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
						CMReportingProposalImpl.class,
						cmReportingProposal.getPrimaryKey(), this) == null) {
				cacheResult(cmReportingProposal);
			}
		}
	}

	/**
	 * Clears the cache for all c m reporting proposals.
	 *
	 * <p>
	 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
	 * </p>
	 */
	public void clearCache() {
		CacheRegistryUtil.clear(CMReportingProposalImpl.class.getName());
		EntityCacheUtil.clearCache(CMReportingProposalImpl.class.getName());
		FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY);
		FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);
	}

	/**
	 * Clears the cache for the c m reporting proposal.
	 *
	 * <p>
	 * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method.
	 * </p>
	 */
	public void clearCache(CMReportingProposal cmReportingProposal) {
		EntityCacheUtil.removeResult(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
			CMReportingProposalImpl.class, cmReportingProposal.getPrimaryKey());
	}

	/**
	 * Creates a new c m reporting proposal with the primary key. Does not add the c m reporting proposal to the database.
	 *
	 * @param reportingProposalId the primary key for the new c m reporting proposal
	 * @return the new c m reporting proposal
	 */
	public CMReportingProposal create(long reportingProposalId) {
		CMReportingProposal cmReportingProposal = new CMReportingProposalImpl();

		cmReportingProposal.setNew(true);
		cmReportingProposal.setPrimaryKey(reportingProposalId);

		return cmReportingProposal;
	}

	/**
	 * Removes the c m reporting proposal with the primary key from the database. Also notifies the appropriate model listeners.
	 *
	 * @param primaryKey the primary key of the c m reporting proposal to remove
	 * @return the c m reporting proposal that was removed
	 * @throws com.liferay.portal.NoSuchModelException if a c m reporting proposal with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMReportingProposal remove(Serializable primaryKey)
		throws NoSuchModelException, SystemException {
		return remove(((Long)primaryKey).longValue());
	}

	/**
	 * Removes the c m reporting proposal with the primary key from the database. Also notifies the appropriate model listeners.
	 *
	 * @param reportingProposalId the primary key of the c m reporting proposal to remove
	 * @return the c m reporting proposal that was removed
	 * @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMReportingProposalException if a c m reporting proposal with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMReportingProposal remove(long reportingProposalId)
		throws NoSuchCMReportingProposalException, SystemException {
		Session session = null;

		try {
			session = openSession();

			CMReportingProposal cmReportingProposal = (CMReportingProposal)session.get(CMReportingProposalImpl.class,
					new Long(reportingProposalId));

			if (cmReportingProposal == null) {
				if (_log.isWarnEnabled()) {
					_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
						reportingProposalId);
				}

				throw new NoSuchCMReportingProposalException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
					reportingProposalId);
			}

			return remove(cmReportingProposal);
		}
		catch (NoSuchCMReportingProposalException nsee) {
			throw nsee;
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}
	}

	protected CMReportingProposal removeImpl(
		CMReportingProposal cmReportingProposal) throws SystemException {
		cmReportingProposal = toUnwrappedModel(cmReportingProposal);

		Session session = null;

		try {
			session = openSession();

			BatchSessionUtil.delete(session, cmReportingProposal);
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}

		FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);

		EntityCacheUtil.removeResult(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
			CMReportingProposalImpl.class, cmReportingProposal.getPrimaryKey());

		return cmReportingProposal;
	}

	public CMReportingProposal updateImpl(
		com.triumphsys.icici.cmeeting.portlet.model.CMReportingProposal cmReportingProposal,
		boolean merge) throws SystemException {
		cmReportingProposal = toUnwrappedModel(cmReportingProposal);

		Session session = null;

		try {
			session = openSession();

			BatchSessionUtil.update(session, cmReportingProposal, merge);

			cmReportingProposal.setNew(false);
		}
		catch (Exception e) {
			throw processException(e);
		}
		finally {
			closeSession(session);
		}

		FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST);

		EntityCacheUtil.putResult(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
			CMReportingProposalImpl.class, cmReportingProposal.getPrimaryKey(),
			cmReportingProposal);

		return cmReportingProposal;
	}

	protected CMReportingProposal toUnwrappedModel(
		CMReportingProposal cmReportingProposal) {
		if (cmReportingProposal instanceof CMReportingProposalImpl) {
			return cmReportingProposal;
		}

		CMReportingProposalImpl cmReportingProposalImpl = new CMReportingProposalImpl();

		cmReportingProposalImpl.setNew(cmReportingProposal.isNew());
		cmReportingProposalImpl.setPrimaryKey(cmReportingProposal.getPrimaryKey());

		cmReportingProposalImpl.setReportingProposalId(cmReportingProposal.getReportingProposalId());
		cmReportingProposalImpl.setCodCcmDt(cmReportingProposal.getCodCcmDt());
		cmReportingProposalImpl.setApprovalTl(cmReportingProposal.getApprovalTl());
		cmReportingProposalImpl.setLoanAmt(cmReportingProposal.getLoanAmt());
		cmReportingProposalImpl.setProposalName(cmReportingProposal.getProposalName());
		cmReportingProposalImpl.setReportingAId1(cmReportingProposal.getReportingAId1());
		cmReportingProposalImpl.setReportingAId2(cmReportingProposal.getReportingAId2());
		cmReportingProposalImpl.setReportingFrom(cmReportingProposal.getReportingFrom());
		cmReportingProposalImpl.setReportingTo(cmReportingProposal.getReportingTo());
		cmReportingProposalImpl.setSmId1(cmReportingProposal.getSmId1());
		cmReportingProposalImpl.setSmId2(cmReportingProposal.getSmId2());
		cmReportingProposalImpl.setSmId3(cmReportingProposal.getSmId3());
		cmReportingProposalImpl.setTlId1(cmReportingProposal.getTlId1());
		cmReportingProposalImpl.setTlId2(cmReportingProposal.getTlId2());
		cmReportingProposalImpl.setProposalId(cmReportingProposal.getProposalId());

		return cmReportingProposalImpl;
	}

	/**
	 * Finds the c m reporting proposal with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found.
	 *
	 * @param primaryKey the primary key of the c m reporting proposal to find
	 * @return the c m reporting proposal
	 * @throws com.liferay.portal.NoSuchModelException if a c m reporting proposal with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMReportingProposal findByPrimaryKey(Serializable primaryKey)
		throws NoSuchModelException, SystemException {
		return findByPrimaryKey(((Long)primaryKey).longValue());
	}

	/**
	 * Finds the c m reporting proposal with the primary key or throws a {@link com.triumphsys.icici.cmeeting.portlet.NoSuchCMReportingProposalException} if it could not be found.
	 *
	 * @param reportingProposalId the primary key of the c m reporting proposal to find
	 * @return the c m reporting proposal
	 * @throws com.triumphsys.icici.cmeeting.portlet.NoSuchCMReportingProposalException if a c m reporting proposal with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMReportingProposal findByPrimaryKey(long reportingProposalId)
		throws NoSuchCMReportingProposalException, SystemException {
		CMReportingProposal cmReportingProposal = fetchByPrimaryKey(reportingProposalId);

		if (cmReportingProposal == null) {
			if (_log.isWarnEnabled()) {
				_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
					reportingProposalId);
			}

			throw new NoSuchCMReportingProposalException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				reportingProposalId);
		}

		return cmReportingProposal;
	}

	/**
	 * Finds the c m reporting proposal with the primary key or returns <code>null</code> if it could not be found.
	 *
	 * @param primaryKey the primary key of the c m reporting proposal to find
	 * @return the c m reporting proposal, or <code>null</code> if a c m reporting proposal with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMReportingProposal fetchByPrimaryKey(Serializable primaryKey)
		throws SystemException {
		return fetchByPrimaryKey(((Long)primaryKey).longValue());
	}

	/**
	 * Finds the c m reporting proposal with the primary key or returns <code>null</code> if it could not be found.
	 *
	 * @param reportingProposalId the primary key of the c m reporting proposal to find
	 * @return the c m reporting proposal, or <code>null</code> if a c m reporting proposal with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMReportingProposal fetchByPrimaryKey(long reportingProposalId)
		throws SystemException {
		CMReportingProposal cmReportingProposal = (CMReportingProposal)EntityCacheUtil.getResult(CMReportingProposalModelImpl.ENTITY_CACHE_ENABLED,
				CMReportingProposalImpl.class, reportingProposalId, this);

		if (cmReportingProposal == null) {
			Session session = null;

			try {
				session = openSession();

				cmReportingProposal = (CMReportingProposal)session.get(CMReportingProposalImpl.class,
						new Long(reportingProposalId));
			}
			catch (Exception e) {
				throw processException(e);
			}
			finally {
				if (cmReportingProposal != null) {
					cacheResult(cmReportingProposal);
				}

				closeSession(session);
			}
		}

		return cmReportingProposal;
	}

	/**
	 * Finds all the c m reporting proposals.
	 *
	 * @return the c m reporting proposals
	 * @throws SystemException if a system exception occurred
	 */
	public List<CMReportingProposal> findAll() throws SystemException {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}

	/**
	 * Finds a range of all the c m reporting proposals.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param start the lower bound of the range of c m reporting proposals to return
	 * @param end the upper bound of the range of c m reporting proposals to return (not inclusive)
	 * @return the range of c m reporting proposals
	 * @throws SystemException if a system exception occurred
	 */
	public List<CMReportingProposal> findAll(int start, int end)
		throws SystemException {
		return findAll(start, end, null);
	}

	/**
	 * Finds an ordered range of all the c m reporting proposals.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param start the lower bound of the range of c m reporting proposals to return
	 * @param end the upper bound of the range of c m reporting proposals to return (not inclusive)
	 * @param orderByComparator the comparator to order the results by
	 * @return the ordered range of c m reporting proposals
	 * @throws SystemException if a system exception occurred
	 */
	public List<CMReportingProposal> findAll(int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		Object[] finderArgs = new Object[] {
				String.valueOf(start), String.valueOf(end),
				String.valueOf(orderByComparator)
			};

		List<CMReportingProposal> list = (List<CMReportingProposal>)FinderCacheUtil.getResult(FINDER_PATH_FIND_ALL,
				finderArgs, this);

		if (list == null) {
			StringBundler query = null;
			String sql = null;

			if (orderByComparator != null) {
				query = new StringBundler(2 +
						(orderByComparator.getOrderByFields().length * 3));

				query.append(_SQL_SELECT_CMREPORTINGPROPOSAL);

				appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
					orderByComparator);

				sql = query.toString();
			}
			else {
				sql = _SQL_SELECT_CMREPORTINGPROPOSAL.concat(CMReportingProposalModelImpl.ORDER_BY_JPQL);
			}

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				if (orderByComparator == null) {
					list = (List<CMReportingProposal>)QueryUtil.list(q,
							getDialect(), start, end, false);

					Collections.sort(list);
				}
				else {
					list = (List<CMReportingProposal>)QueryUtil.list(q,
							getDialect(), start, end);
				}
			}
			catch (Exception e) {
				throw processException(e);
			}
			finally {
				if (list == null) {
					FinderCacheUtil.removeResult(FINDER_PATH_FIND_ALL,
						finderArgs);
				}
				else {
					cacheResult(list);

					FinderCacheUtil.putResult(FINDER_PATH_FIND_ALL, finderArgs,
						list);
				}

				closeSession(session);
			}
		}

		return list;
	}

	/**
	 * Removes all the c m reporting proposals from the database.
	 *
	 * @throws SystemException if a system exception occurred
	 */
	public void removeAll() throws SystemException {
		for (CMReportingProposal cmReportingProposal : findAll()) {
			remove(cmReportingProposal);
		}
	}

	/**
	 * Counts all the c m reporting proposals.
	 *
	 * @return the number of c m reporting proposals
	 * @throws SystemException if a system exception occurred
	 */
	public int countAll() throws SystemException {
		Object[] finderArgs = new Object[0];

		Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
				finderArgs, this);

		if (count == null) {
			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(_SQL_COUNT_CMREPORTINGPROPOSAL);

				count = (Long)q.uniqueResult();
			}
			catch (Exception e) {
				throw processException(e);
			}
			finally {
				if (count == null) {
					count = Long.valueOf(0);
				}

				FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, finderArgs,
					count);

				closeSession(session);
			}
		}

		return count.intValue();
	}

	/**
	 * Initializes the c m reporting proposal persistence.
	 */
	public void afterPropertiesSet() {
		String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
					com.liferay.util.service.ServiceProps.get(
						"value.object.listener.com.triumphsys.icici.cmeeting.portlet.model.CMReportingProposal")));

		if (listenerClassNames.length > 0) {
			try {
				List<ModelListener<CMReportingProposal>> listenersList = new ArrayList<ModelListener<CMReportingProposal>>();

				for (String listenerClassName : listenerClassNames) {
					listenersList.add((ModelListener<CMReportingProposal>)InstanceFactory.newInstance(
							listenerClassName));
				}

				listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
			}
			catch (Exception e) {
				_log.error(e);
			}
		}
	}

	public void destroy() {
		EntityCacheUtil.removeCache(CMReportingProposalImpl.class.getName());
		FinderCacheUtil.removeCache(FINDER_CLASS_NAME_ENTITY);
		FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST);
	}

	@BeanReference(type = CMHolidayPersistence.class)
	protected CMHolidayPersistence cmHolidayPersistence;
	@BeanReference(type = CMParameterPersistence.class)
	protected CMParameterPersistence cmParameterPersistence;
	@BeanReference(type = CMUserPersistence.class)
	protected CMUserPersistence cmUserPersistence;
	@BeanReference(type = CMCreditRatingPersistence.class)
	protected CMCreditRatingPersistence cmCreditRatingPersistence;
	@BeanReference(type = COEPropoalTypePersistence.class)
	protected COEPropoalTypePersistence coePropoalTypePersistence;
	@BeanReference(type = CMIndustryPersistence.class)
	protected CMIndustryPersistence cmIndustryPersistence;
	@BeanReference(type = CMCompanyPersistence.class)
	protected CMCompanyPersistence cmCompanyPersistence;
	@BeanReference(type = CMControlGroupPersistence.class)
	protected CMControlGroupPersistence cmControlGroupPersistence;
	@BeanReference(type = CMRolePersistence.class)
	protected CMRolePersistence cmRolePersistence;
	@BeanReference(type = CMBranchPersistence.class)
	protected CMBranchPersistence cmBranchPersistence;
	@BeanReference(type = CMRegionPersistence.class)
	protected CMRegionPersistence cmRegionPersistence;
	@BeanReference(type = CMForumPersistence.class)
	protected CMForumPersistence cmForumPersistence;
	@BeanReference(type = CMSubForumPersistence.class)
	protected CMSubForumPersistence cmSubForumPersistence;
	@BeanReference(type = CMSanctionProposalPersistence.class)
	protected CMSanctionProposalPersistence cmSanctionProposalPersistence;
	@BeanReference(type = CMReportingProposalPersistence.class)
	protected CMReportingProposalPersistence cmReportingProposalPersistence;
	@BeanReference(type = CMPostProposalPersistence.class)
	protected CMPostProposalPersistence cmPostProposalPersistence;
	@BeanReference(type = CMMeetingPersistence.class)
	protected CMMeetingPersistence cmMeetingPersistence;
	@BeanReference(type = CMProposalTypePersistence.class)
	protected CMProposalTypePersistence cmProposalTypePersistence;
	@BeanReference(type = CMEntityPersistence.class)
	protected CMEntityPersistence cmEntityPersistence;
	@BeanReference(type = CMOthersProposalPersistence.class)
	protected CMOthersProposalPersistence cmOthersProposalPersistence;
	@BeanReference(type = CMValuationProposalPersistence.class)
	protected CMValuationProposalPersistence cmValuationProposalPersistence;
	@BeanReference(type = CMPoliciesProposalPersistence.class)
	protected CMPoliciesProposalPersistence cmPoliciesProposalPersistence;
	@BeanReference(type = CMProposalPersistence.class)
	protected CMProposalPersistence cmProposalPersistence;
	@BeanReference(type = ResourcePersistence.class)
	protected ResourcePersistence resourcePersistence;
	@BeanReference(type = UserPersistence.class)
	protected UserPersistence userPersistence;
	private static final String _SQL_SELECT_CMREPORTINGPROPOSAL = "SELECT cmReportingProposal FROM CMReportingProposal cmReportingProposal";
	private static final String _SQL_COUNT_CMREPORTINGPROPOSAL = "SELECT COUNT(cmReportingProposal) FROM CMReportingProposal cmReportingProposal";
	private static final String _ORDER_BY_ENTITY_ALIAS = "cmReportingProposal.";
	private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No CMReportingProposal exists with the primary key ";
	private static Log _log = LogFactoryUtil.getLog(CMReportingProposalPersistenceImpl.class);
}